package sd.czw.com.miemiegoushop.activity;

import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import butterknife.Bind;
import butterknife.OnClick;
import sd.czw.com.miemiegoushop.R;
import sd.czw.com.miemiegoushop.base.CzwBaseActivity;

/**
 * Created by czw
 * desc 描述：协调者布局使用一
 * on 2017/9/27.
 */
public class CoordinatorlayoutActivityActivity extends CzwBaseActivity {

    public CoordinatorlayoutActivityActivity instance = this;

    @Bind(R.id.btn_toolbar)
    Button btnToolbar;
    @Bind(R.id.btn_scrollflags)
    Button btnScrollFlags;
    @Bind(R.id.btn_coolspaning)
    Button btnCoolSpaning;
    @Bind(R.id.btn_exituntilcollapsed)
    Button brnExitcoll;
    @Bind(R.id.btn_collasping_t)
    Button btnCollasping;
    private Intent intent;

    @Override
    public int getLayoutId() {
        return R.layout.activity_coor;
    }

    @Override
    public void initView() {
        intent = new Intent();
    }

    @Override
    public void initData() {

    }


    @OnClick({R.id.btn_toolbar,R.id.btn_scrollflags,R.id.btn_coolspaning,R.id.btn_exituntilcollapsed,R.id.btn_collasping_t})
    void onclick(View view){
        switch (view.getId()){
            case R.id.btn_toolbar:
                intent.setClass(instance,ToolBarActivity.class);
                break;
            case R.id.btn_scrollflags:
                intent.setClass(instance,ToolBarLayoutActivity.class);
                break;
            case R.id.btn_coolspaning:
                intent.setClass(instance,CoolSpaningActivity.class);
                break;
            case R.id.btn_exituntilcollapsed:
                intent.setClass(instance,ExitUntilCollapsedActivity.class);
                break;
            case R.id.btn_collasping_t:
                intent.setClass(instance,CoolSpaningActivity2.class);
                break;
        }
        startActivity(intent);
    }


}
